package com.example.java.designpattern.singleton;

import com.example.java.designpattern.Divisor;

/**
 * 饿汉式单例
 */
public class EagerSingleton implements Divisor {

    private static final Divisor INSTANCE = new EagerSingleton();

    private EagerSingleton() {
    }

    public static Divisor getInstance() {
        return INSTANCE;
    }

    @Override
    public void divide(String target) {
    }
}
